package visualisation;

import java.util.Vector;

import javax.swing.JFrame;
import javax.swing.JSplitPane;

import fragment.Fragment;

public class Viewer {
	
	public static void display(String param, Vector<Fragment> fragList){
		
		
		JSplitPane splitPane= new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, CompositionView.visualise(param, fragList), ProcessView.visualise(param, fragList));
		 JFrame frame = new JFrame("p r e f u s e  |  g r a p h v i e w");
		 
        frame.setContentPane(splitPane);
        frame.pack();
        frame.setVisible(true);
	}

}
